package com.mg.admin.pageInterceptor;

public class MySQLDialect extends Dialect{
	
	public boolean supportsLimitOffset(){
		return true;
	}
	
    public boolean supportsLimit() {   
        return true;   
    }  
	
	@Override
	public String getLimitString(String sql, int offset, int limit) {
		if (offset > 0) {   
        	return sql + " limit "+offset+","+limit; 
        } else {   
            return sql + " limit "+limit;
        }  
	}

}
